//
//  DDRViewController.h
//  Lottolandia
//
//  Created by Luca D'Antona on 23/11/13.
//  Copyright (c) 2013 Quelli for Lotto. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BLE.h"
#import <AVFoundation/AVFoundation.h>

#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3

@interface DDRViewController : UIViewController <BLEDelegate, AVAudioPlayerDelegate> {
    BLE *bleShield;
    
    UIImage *arrowUp;
    UIImage *arrowUpOff;
    UIImage *arrowUpOn;
    UIImage *arrowDown;
    UIImage *arrowDownOff;
    UIImage *arrowDownOn;
    UIImage *arrowLeft;
    UIImage *arrowLeftOff;
    UIImage *arrowLeftOn;
    UIImage *arrowRight;
    UIImage *arrowRightOff;
    UIImage *arrowRightOn;
    
    AVAudioPlayer *player;
}

@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *spinner;
@property (weak, nonatomic) IBOutlet UITextField *textField;
@property (weak, nonatomic) IBOutlet UILabel *label;
@property (weak, nonatomic) IBOutlet UILabel *labelRSSI;
@property (weak, nonatomic) IBOutlet UIButton *buttonConnect;

@property (strong, nonatomic) IBOutlet UIButton *arrowLeftStatic;
@property (strong, nonatomic) IBOutlet UIButton *arrowDownStatic;
@property (strong, nonatomic) IBOutlet UIButton *arrowUpStatic;
@property (strong, nonatomic) IBOutlet UIButton *arrowRightStatic;

@property (strong, nonatomic) IBOutlet UILabel *counter;


@end